package com.showgood.util {
	/**
	 * 
	 * @author bianpeng
	 */
	public class Path2I {
		private var _nodes:Vector.<Point2I> = new Vector.<Point2I>();
		public function Path2I(...xy) {
			GameUtil.assert('2', xy.length % 2 == 0);
			for (var i:int = 0; i < xy.length / 2; ++i) {
				_nodes.push(new Point2I(xy[i * 2], xy[i * 2 + 1]));
			}
		}
		public function get length():int { return _nodes.length; }
		public function nodeAt(i:int):Point2I { return _nodes[i]; }
	}
}

